//index.js
//获取应用实例
const app = getApp()

Page({
	data: {
		openid: '',
		nickName: '',
		avatarUrl: '',
		curentNav: 2 //当前导航
	},
	//事件处理函数
	onLoad: function() {
		console.log(app.globalData)
		if (app.globalData.nickName && app.globalData.avatarUrl) {
			this.setData({
				nickName: app.globalData.nickName,
				avatarUrl: app.globalData.avatarUrl
			})
		}
	},
	onReady: function() {
		wx.setNavigationBarTitle({
			title: '申请店铺'
		})
	},

})
